package com.sfx.job;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-07-14
 * Time: 13:38
 */
@Component
@Slf4j
public class TestJob {

    //@Scheduled(cron = "0/5 * * * * ?")
    public void testJob(){
        //要执行的代码
        log.info("定时任务执行了");
    }
}